package org.webball.base.interfaces;

/**
 * <p>
 * Interface that allows setting communication between
 * Client and Server. Can be used on both sides, Client
 * and Server.
 * </p>
 * @author Elwira Kowalewska
 */
public interface Communicable {
	
	/**
	 * @param indx
	 * - index that tells the Server which one of two
	 * connections with Clients to establish. Parameter
	 * of no significance when the method is used by the
	 * Client, because Client is connected to one Server
	 * only.
	 * @param communication
	 * - interface that provides methods that are used
	 * to communicate between Server and Client.
	 */
	public abstract void setCommunication(int indx, ICommunication communication);
}
